#include "widget.h"

#include <QToolButton>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
{
    //重置Widget的大小
    resize(600, 480);

    QToolButton *btn = new QToolButton(this);
    btn->resize(200, 50);
    btn->move(100, 100);
    btn->setIcon(QIcon(":/wangdao.png"));
    btn->setText("王道");
    btn->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
}

Widget::~Widget()
{
}

